package com.dkd.manage.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.dkd.common.annotation.Excel;
import com.dkd.common.core.domain.BaseEntity;

/**
 * 用户管理对象 tb_users
 * 
 * @author LQL
 * @date 2025-04-22
 */
public class Users extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID（主键） */
    private Long userId;

    /** 用户类型（individual个人/group团体） */
    @Excel(name = "用户类型", readConverterExp = "i=ndividual个人/group团体")
    private String userType;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 注册手机号 */
    @Excel(name = "注册手机号")
    private String mobile;

    /** 头像URL */
    private String avatarUrl;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 公司名称（团体用户专属） */
    @Excel(name = "公司名称", readConverterExp = "团=体用户专属")
    private String companyName;

    /** 联系人姓名（团体用户专属） */
    @Excel(name = "联系人姓名", readConverterExp = "团=体用户专属")
    private String contactName;

    /** 联系人电话（团体用户专属） */
    @Excel(name = "联系人电话", readConverterExp = "团=体用户专属")
    private String contactPhone;

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setUserType(String userType) 
    {
        this.userType = userType;
    }

    public String getUserType() 
    {
        return userType;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setMobile(String mobile) 
    {
        this.mobile = mobile;
    }

    public String getMobile() 
    {
        return mobile;
    }
    public void setAvatarUrl(String avatarUrl) 
    {
        this.avatarUrl = avatarUrl;
    }

    public String getAvatarUrl() 
    {
        return avatarUrl;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setCompanyName(String companyName) 
    {
        this.companyName = companyName;
    }

    public String getCompanyName() 
    {
        return companyName;
    }
    public void setContactName(String contactName) 
    {
        this.contactName = contactName;
    }

    public String getContactName() 
    {
        return contactName;
    }
    public void setContactPhone(String contactPhone) 
    {
        this.contactPhone = contactPhone;
    }

    public String getContactPhone() 
    {
        return contactPhone;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("userType", getUserType())
            .append("username", getUsername())
            .append("mobile", getMobile())
            .append("avatarUrl", getAvatarUrl())
            .append("email", getEmail())
            .append("companyName", getCompanyName())
            .append("contactName", getContactName())
            .append("contactPhone", getContactPhone())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .toString();
    }
}
